package com.yuyuan.follow.domain.dto;

import com.qcloud.cos.http.HttpMethodName;
import com.yuyuan.follow.utils.COSUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FollowerDTO {
    /**
     * 粉丝id
     */
    private Long userId;
    /**
     * 关注的用户名
     */
    private String followerUserName;
    /**
     * 关注用户性别
     */
    private Short followerUserSex;
    /**
     * 关注的用户头像
     */
    private String followerUserIcon;
    /**
     * 关注用户头像url
     */
    private String followerUserIconUrl = "";

    public void handlerImgs(){
        this.followerUserIconUrl = COSUtils.getSign(followerUserIcon, HttpMethodName.GET);
    }
}
